<template>
	<view class="my-search-container" :style="{'background-color': bgc}" @click="trigger">
		<view class="my-search-box" :style="{'border-radius': bra + 'rpx'}">
			<uni-icons type="search" size="17"></uni-icons>
			<text>搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		props: {
			bgc: {
				type: String,
				default: '#c00000'
			},
			bra: {
				type: Number,
				default: 30
			}
		},
		data() {
			return {
				
			};
		},
		methods: {
			trigger() {
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
.my-search-container {
	padding: 10rpx 20rpx;
	.my-search-box {
		background-color: #FFFFFF;
		height: 60rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		uni-icons {
			color: black;
		}
	}
}
</style>
